<?php

interface b{}
class Computer implements b{
    var $var1; // 这里没有默认值...
    public $nage='时代发生的发';
    private   $ps="d";
    public $age='时代发生的发';
    
    public function __toString() { 
        return $this->nage.'福冈黄蜂个打印对象';
    
    }
    
    public function dfdf(){}
    public function df(){}
        
    
}


print( new Computer());
print(class_exists('Computer6'));
$cp=new Computer();
print("Ff");
print_r(get_class($cp));
print_r(get_class_methods($cp));
print_r(get_class_vars("Computer"));

//print 
if($ggg=get_parent_class('Computer')){
    
    print( $ggg);

}else{
     print("false");
}
if($ggg=interface_exists('b')){
    
    print( $ggg);

}else{
     print("false");
}
if($ggg= is_a($cp,'Computer')){
    
    print( $ggg);

}else{
     print("false");
}

 
if($ggg= is_subclass_of('Computer','b')){
    
    print( $ggg);

}else{
     print("false");
}
if($ggg= method_exists($cp,'_run')){
    
    print( $ggg);
    
}else{
    print("false");
}
 

#$rc = new ReflectionClass('Computer');

#Reflection::export($rc);
try {
    $ReflectedClass = new ReflectionClass('Computer');
    print_r($ReflectedClass->getAttributes());
} catch (LogicException $logicDuh) {
    print_r($logicDuh);
}
